<template>
	<view>
		<web-view :src="src" @onPostMessage="onMessage" @message="onMessage"></web-view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				src: ''
			};
		},
		methods: {
			onMessage(e) {
				console.log(2323)

			}
		},
		onLoad(params) {
			// console.log('params:',params)
			this.src = decodeURIComponent(params.src)
			console.log('this.src:', this.src)
			if(params.title) {
				this.$utils.setTitle(params.title)
			}
			// console.log('this.src:',this.src)



		}
	}
</script>

<style lang="scss">

</style>